<template>
	<view>
		<image :src="src" mode=""></image>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				second: 5,
				src: '/static/images/back2.png'
			}
		},
		methods: {
			onLoad() {
				var interval = setInterval(() => {
					--this.second;
					if (this.second <= 0) {
						clearInterval(interval);
						this.second = 5
						uni.navigateTo({
							url: '/pages/index/index'
						})
					}
				}, 1000)

				// 获取系统信息
				uni.getSystemInfo({
					success(res) {
						console.log(res.screenWidth) //屏幕宽度
						console.log(res.screenHeight) //屏幕高度
					}
				});
			}
		}
	}
</script>

<style>

</style>
